//
//  PageNavigationViewController.swift
//  
//
//  Created by 孙长坦 on 2022/6/16.
//

import Foundation
import UIKit
import LibUI
import LibService


open class PageNavigationViewController: BaseNavigationViewController, PageControllerProtocol {
    public unowned let page: PageProtocol
    
    public init(page: PageProtocol) {
        self.page = page
        
        super.init(nibName: nil, bundle: nil)
    }
    
    required public init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    deinit {
        page.module.removePage(type: page.type, id: page.id)
    }
}
